Created: 2022-08-06
Tags: #fleeting
But why??
or RTC (real time clock)
or CMOS/BIOS clock.
This clock is outside the operating system,
It's on your computer’s motherboard.
It keeps running even if system is powered off.
is inside your operating system.
Let's explain how computers read time
Computer is powered on...
...then HARDWARE CLOCK is read and used to set the SYSTEM CLOCK. The os then uses SYSTEM CLOCK to tracking time.
IF -> OS makes any changes to SYSTEM CLOCK ( like changing time zone etc )
THEN -> SYSTEM CLOCK syncs this info to HARDWARE CLOCK.
By default,
Linux assumes time stored IN hardware clock is UTC
Windows thinks time stored IN hardware clock is local time.
Fix it by
timedatectl set-local-rtc 1